/**
 * 
 */
package com.henu.col05023.common.bo;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

/**
 * @author hzj
 * 
 */
public class BaseBO {
	public Object getBean(String beanName) {
		Resource resource = new ClassPathResource("applicationContext.xml");
		BeanFactory factory = new XmlBeanFactory(resource);
		return factory.getBean(beanName);
	}
}
